return connectionHandler != null && !connectionHandler.isVirtual() && connectionHandler.getConnectionStatus().isValid() && !connectionHandler.getLoadMonitor().isLoading();
}
private void annotateExecutable(ExecutablePsiElement executablePsiElement, AnnotationHolder holder) {
if (!executablePsiElement.isNestedExecutable()) {
StatementExecutionProcessor executionProcessor = executablePsiElement.getExecutionProcessor();
if (executionProcessor != null) {
Annotation annotation = holder.createInfoAnnotation(executablePsiElement, null);
annotation.setGutterIconRenderer(new StatementGutterRenderer(executionProcessor));
}
}