if (file == null) {
return false;
}
final VirtualFile virtualFile = file.getVirtualFile();
FileType fileType = virtualFile != null ? fileTypeManager.getFileTypeByFile(virtualFile) : null;
<BUG>if (DebuggerUtils.supportsJVMDebugging(fileType)) {
DebuggerSession debuggerSession = DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession();</BUG>
return debuggerSession != null && debuggerSession.isPaused();
}
return false;

if (file == null) {
return false;
}
final VirtualFile virtualFile = file.getVirtualFile();
FileType fileType = virtualFile != null ? fileTypeManager.getFileTypeByFile(virtualFile) : null;
if (DebuggerUtils.supportsJVMDebugging(fileType) || DebuggerUtils.supportsJVMDebugging(file)) {
DebuggerSession debuggerSession = DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession();
return debuggerSession != null && debuggerSession.isPaused();
}
return false;
