void () { DumbAwareAction.create(e -> { String pathToSchema = mySchemaField.getText(); if (StringUtil.isEmptyOrSpaces(pathToSchema) || isHttpPath(pathToSchema)) return; VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(pathToSchema)); if (virtualFile == null) { BalloonBuilder balloonBuilder = JBPopupFactory.getInstance() .createHtmlTextBalloonBuilder(JsonBundle.message("json.schema.file.not.found"), UIUtil.getBalloonErrorIcon(), MessageType.ERROR.getPopupBackground(), null); Balloon balloon = balloonBuilder.setFadeoutTime(TimeUnit.SECONDS.toMillis(3)).createBalloon(); balloon.showInCenterOf(mySchemaField); return; } PsiNavigationSupport.getInstance().createNavigatable(myProject, virtualFile, -1).navigate(true); }).registerCustomShortcutSet(CommonShortcuts.getEditSource(), mySchemaField); }