@Override
    public boolean process(@NotNull ResultWithContext result) {
      PsiElement context = result.getFileContext();
      myProcessor.handleEvent(JavaScopeProcessorEvent.SET_CURRENT_FILE_CONTEXT, context);
      PsiNamedElement element = result.getElement();

      if (element == null) {
        return myProcessor.executeForUnresolved();
      }

      if (element instanceof PsiClass && context instanceof PsiImportStatement) {
        PsiClass containingClass = ((PsiClass)element).getContainingClass();
        if (containingClass != null && containingClass.hasTypeParameters()) {
          return myProcessor.execute(element, myState.put(PsiSubstitutor.KEY, createRawSubstitutor(containingClass)));
        }
      }

      return myProcessor.execute(element, myState);
    }
@Override
    public boolean process(@NotNull ResultWithContext result)