use of org.elixir_lang.ElixirFileType in project intellij-elixir by KronicDeth.
the class SetupSDKNotificationProvider method createNotificationPanel.
@Nullable
@Override
public EditorNotificationPanel createNotificationPanel(@NotNull VirtualFile file, @NotNull FileEditor fileEditor) {
if (!(file.getFileType() instanceof ElixirFileType))
return null;
PsiFile psiFile = PsiManager.getInstance(myProject).findFile(file);
if (psiFile == null || psiFile.getLanguage() != ElixirLanguage.INSTANCE)
return null;
ElixirSdkRelease sdkRelease = ElixirSdkType.getRelease(psiFile);
if (sdkRelease != null)
return null;
return createPanel(myProject, psiFile);
}
Aggregations