Icon (BuildArtifactsBeforeRunTask task) { List<ArtifactPointer> pointers = task.getArtifactPointers(); if (pointers == null || pointers.isEmpty()) return getIcon(); Artifact artifact = pointers.get(0).getArtifact(); if (artifact == null) return getIcon(); return artifact.getArtifactType().getIcon(); }