private static boolean isPluginFile(@NotNull PsiFile file) {
    String path = file.getVirtualFile().getPath();
    boolean isPlatform = path.contains("/platform/") &&
                         !path.contains("/remote-dev/cwm-") &&
                         !path.contains("/remote-dev/rd-");

    // Rider lives in other repository, but also kind-of platform for Rider IDE
    boolean isRider = path.contains("/rider/") ||
                      path.contains("/rider-cpp-core/") ||
                      path.contains("/rdclient-dotnet/");

    return !isPlatform && !isRider;
  }
private static boolean isPluginFile(@NotNull PsiFile file)