public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile psiFile) {
return psiFile instanceof DBLanguageFile && psiFile.getVirtualFile().getParent() != null;
}
public void invoke(@NotNull Project project, Editor editor, PsiFile psiFile) throws IncorrectOperationException {
GlobalProjectSettingsDialog globalSettingsDialog = new GlobalProjectSettingsDialog(project);
CodeCompletionSettings settings = CodeCompletionSettings.getInstance(project);
globalSettingsDialog.focusSettings(settings);
globalSettingsDialog.show();
}