private TestCaseInterface getTestCaseInterface() {
      AbstractNodeInterface nodeInterface =
          NodeInterfaceFactory.getNodeInterface(getSelectedNodes().get(0), null, fFileInfoProvider);

      if (!(nodeInterface instanceof TestCaseInterface)) {
        final String MSG = "Invalid type of node interface. Test case interface expected";
        ExceptionHelper.reportRuntimeException(MSG);
      }

      return (TestCaseInterface) nodeInterface;
    }
    private MethodInterface getMethodInterface() {
      AbstractNodeInterface nodeIf =
          NodeInterfaceFactory.getNodeInterface(getSelectedNodes().get(0), null, fFileInfoProvider);

      if (!(nodeIf instanceof MethodInterface)) {
        final String MSG = "Invalid type of node interface. Method node interface expected";
        ExceptionHelper.reportRuntimeException(MSG);
      }

      return (MethodInterface) nodeIf;
    }