public static @NotNull PsiElement @Nullable [] findTargetElementsFromProviders(@Nullable PsiElement elementAt,
                                                                                 int offset,
                                                                                 @NotNull Editor editor) {
    for (GotoDeclarationHandler handler : GotoDeclarationHandler.EP_NAME.getExtensionList()) {
      PsiElement[] result = handler.getGotoDeclarationTargets(elementAt, offset, editor);
      if (result != null && result.length > 0) {
        return assertNotNullElements(result, handler.getClass()) ? result : null;
      }
    }

    return PsiElement.EMPTY_ARRAY;
  }
public static @NotNull PsiElement @Nullable [] findTargetElementsFromProviders(@Nullable PsiElement elementAt,
                                                                                 int offset,
                                                                                 @NotNull Editor editor)