boolean (String inputString) { try { //noinspection ResultOfObjectAllocationIgnored new URL(inputString); return true; } catch (MalformedURLException e1) { Messages.showErrorDialog(e1.getMessage(), ProjectBundle.message("sdk.configure.javadoc.url.title")); } return false; }