private static boolean assertNotNullElements(PsiElement @NotNull [] result, Class<?> clazz) {
    for (PsiElement element : result) {
      if (element == null) {
        PluginException.logPluginError(LOG,
                                       "Null target element is returned by 'getGotoDeclarationTargets' in " + clazz.getName(), null, clazz
        );
        return false;
      }
    }
    return true;
  }
private static boolean assertNotNullElements(PsiElement @NotNull [] result, Class<?> clazz)